package com.example.loginstructuredemo.base;

/**
 * Created by Alex on 2016/10/21.
 */

public class BasePresenterImpl<T extends IBaseView, V> implements IBasePresenter, IBaseRequestCallBack<V> {

	public IBaseView iBaseView;

	public BasePresenterImpl(T iBaseView) {
		this.iBaseView = iBaseView;
	}

	@Override
	public void beforeRequest(int requestTag) {

	}

	@Override
	public void requestError(Throwable e,int requestTag) {
		iBaseView.loadDataError(e,requestTag);
	}

	@Override
	public void retuestSuccess(V callBack,int requestTag) {
		iBaseView.loadDataSuccess(callBack,requestTag);
	}

	@Override
	public void onResume() {

	}

	@Override
	public void onDestroy() {

	}
}
